<template>
  <div id="wangeditor.vue">
    富文本展示框
    <hr />
    <div id="div1">
      <p>欢迎使用 <b>wangEditor</b> 富文22222222222222222222本编辑器</p>
    </div>
  </div>
</template>

<script>
const E = window.wangEditor;
export default {
  mounted() {
    // 或者 const editor = new E( document.getElementById('div1') )
    const editor = new E("#div1");
    editor.create();
    console.log(editor.txt.html());
  },
};
</script>

<style>
</style>